package com.woniuxy.company5.controller;

import com.woniuxy.company5.service.MacInformationService;
import com.woniuxy.company5.util.Result;
import com.woniuxy.company5.vo.MacInformationVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/macinformaction")
public class MacInformactionController {
    @Resource
    private MacInformationService macInformationService;

    @GetMapping("")
    public Result selAllSheBei(){
        List<MacInformationVo> macInformationVos = macInformationService.selAllSheBei();
        return Result.ok().data("macInformationVos",macInformationVos);
    }

}
